$(function() {
    let layer = layui.layer

    $('#logout-btn').click(function() {
        layer.confirm('是否确认退出?', { icon: 3, title: '提示' }, function(index) {

            localStorage.removeItem('token')
            location.href = 'http://127.0.0.1:5500/jiang-qiliang-group-project/bigevent-end/login.html'
            layer.close(index);
        });
    })
})